-- GENERATED SPELL FOR [Chilled Earth Elemental] --


function spell0_30849(pUnit, Event) --@Throw Ice,n/a--
pUnit:FullCastSpellOnTarget(43543,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30849', 2000, 1)
end

function Sorts_30849(pUnit, Event)
local choix_sorts_30849 = math.random(0, 0)
if choix_sorts_30849 == 0 then
pUnit:RegisterEvent('spell0_30849', 1, 1)
end
end

function mob30849_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30849', math.random(1500, 3000), 1)
end

function mob30849_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30849_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30849_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30849, 1, 'mob30849_Action')
RegisterUnitEvent(30849, 2, 'mob30849_Leave')
RegisterUnitEvent(30849, 3, 'mob30849_Kill')
RegisterUnitEvent(30849, 4, 'mob30849_Die')
